#include "shm.hpp"
#include "fifo.hpp"
int main()
{
    FileOpt writeOpt(PATH, FILENAME);
    writeOpt.OpenForWrite();
    shm shm(default_path, default_proj_id, "user");
    char *mem = (char *)shm.VisualAddr();
    int index = 0;
    for (char i = 'A'; i <= 'Z'; i++, index += 2)
    {
        sleep(1);
        mem[index] = i;
        mem[index + 1] = i;
        sleep(1);
        mem[index + 2] = 0;

        writeOpt.WakeUp();
    }
    writeOpt.Close();
    return 0;
}
